package httpAuth

import (
	"ac-julink/manager"
)

// wgauth 101设备认证,创建token
//func AuthCreateToken(_wifiid, _ver string, client *manager.AcRestClient) (token string, code int, err error) {
//	token, code, err = client.AuthCreateToken(_wifiid, _ver)
//	return
//}

// wgauth校验token,返回wifiid
func AuthCheckToken(token string, client *manager.AcRestClient) (_wifiid string, code int, err error) {
	_wifiid, code, err = client.AuthCheckToken(token)
	return
}

// warehouse校验批次，返回bool
//func AuthBatch(domain, subdomain, _wifiid, ver string, client *manager.AcRestClient) bool {
//	ok := client.AuthBatch(domain, subdomain, _wifiid, ver)
//	return ok
//}
